.template-editor {
  padding: 24px;
  background: #fff;
  min-height: 600px;
}

.template-editor .ant-form-item {
  margin-bottom: 16px;
}

.template-editor .ant-card {
  border-radius: 8px;
}

.template-editor .ant-card-head {
  background: #fafafa;
  padding: 12px 16px;
}

.template-editor .ant-card-body {
  padding: 16px;
}

.template-editor .variable-card {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.template-editor .variable-name {
  font-family: monospace;
  background: #fff;
  padding: 2px 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.template-editor .monaco-editor {
  border-radius: 4px;
}

.template-editor .preview-content {
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.template-editor .variable-tag {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-block;
  margin: 2px;
}

.template-editor .ant-tabs-tab {
  padding: 8px 16px;
}

.template-editor .code-editor-wrapper {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}

.template-editor .action-buttons {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 24px;
}